#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	double x, y;
	scanf("%lf %lf", &x, &y);
	x = x + y * x;
	printf("%.0lf", x);
	return 0;
}